// 操作token的公用文件
//1.封装token操作文件utils/stroage.js
//2.导出操作token的方法
//3.替换

const TOKEN_KEY = 'geek_pc'

//读取token
const getToken =()=>  localStorage.getItem(TOKEN_KEY)
//保存token
const setToken=(token)=>{
    localStorage.setItem(TOKEN_KEY,token)
}
//删除token
const removeToken=()=>{
    localStorage.removeItem(TOKEN_KEY)
}
export{getToken,setToken,removeToken}